package com.hk.service.sys.impl;

import org.springframework.stereotype.Service;

import com.hk.commons.LongId;
import com.hk.commons.entity.sys.SysResource;
import com.hk.dao.base.impl.BaseServiceImpl;
import com.hk.service.sys.ISysResource;


@Service
public class SysResourceImpl extends BaseServiceImpl<SysResource> implements ISysResource {

	@Override
	public SysResource findById(Long id) {		
		return getById(id);
	}

	@Override
	public SysResource delete(Long id) {
		SysResource model =new SysResource();
		model.setId(id);
		delete(model);
		return model;
	}

	@Override
	public Long add(SysResource model) {
		Long id = LongId.get();
		model.setId(id);
		save(model);
		return id;
	}
}
